package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfoVo trade(TradeVo vo);

    void submitOrder(OrderInfoVo orderInfoVo);

    void updateOrderStatus(String orderNo);

    OrderInfo getOrderInfo(String orderNo);

    IPage<OrderInfo> findOrderPage(Integer pageNum, Integer pageSize);
}
